package com.x.erp.model;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;

/**
 * 
 * 用户车辆收藏表
 * 
 * @author pansong
 *
 */
@MappingTable(tableName = "ERP_CAR_FAVORITE")
public class CarFavorite extends BaseObject {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1696931245754343471L;

	@MappingColumn(columnName = "FAVORITE_ID", columnPk = true, columnLength = 32)
	private String carFavoriteId;// 收藏ID

	@MappingColumn(columnName = "USER_ID")
	private String userId;// 用户ID

	@MappingColumn(columnName = "CAR_ID")
	private String carId;// 车辆ID

	@MappingTable(tableName = "ERP_CAR")
	private Car car;// 车辆信息
	
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@MappingColumn(columnName = "FAVORITE_CREATE_TIME")
	private Date favoriteCreateTime;// 收藏时间

	public String getCarFavoriteId() {
		return carFavoriteId;
	}

	public void setCarFavoriteId(String carFavoriteId) {
		this.carFavoriteId = carFavoriteId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getCarId() {
		return carId;
	}

	public void setCarId(String carId) {
		this.carId = carId;
	}

	public Car getCar() {
		return car;
	}

	public void setCar(Car car) {
		this.car = car;
	}

	public Date getFavoriteCreateTime() {
		return favoriteCreateTime;
	}

	public void setFavoriteCreateTime(Date favoriteCreateTime) {
		this.favoriteCreateTime = favoriteCreateTime;
	}
}
